package puppet;

//学生类对象的集合

import java.util.ArrayList;

public class Test2 {
    public static void main(String[] args) {
        ArrayList<Student> arrayList = new ArrayList<>();

        arrayList.add(new Student("001","anna",18));
        arrayList.add(new Student("002","joke",19));
        arrayList.add(new Student("003","maike",17));

        for (int i = 0; i < arrayList.size(); i++) {
            System.out.println(arrayList.get(i).toString());
        }
    }
}
